// 添加课程
export interface courseAddObject {
	id?: string;
	cover: string;
	description: string;
	lessonNum: number;
	price: number;
	subjectId: string;
	subjectParentId: string;
	teacherId: string;
	title: string;
}

// 创建课程大纲
// 根据课程id查询课程基本信息
export interface courseOutlineObject {
	courseInfoVo?: courseAddObject;
}
// 根据课程id确定课程确认信息
export interface ResPublishCourseInfo {
	publishCourse?: PublishCourseInfo;
}

export interface PublishCourseInfo {
	id: string;
	title: string;
	cover: string;
	lessonNum: number;
	subjectLevelOne: string;
	subjectLevelTwo: string;
	teacherName: string;
	price: string;
}
// 章节列表的提交信息
export interface chapterParamsInterface {
	courseId: string; // 课程id
	sort: number; // 排序
	title: string; // 章节标题
}

// 根据章节id获取相关信息
export interface courseChapterResInfo {
	chapter: courseChapterInfo;
}

// 单个章节信息提交信息
export interface courseChapterInfo {
	id: string;
	courseId: string;
	title: string;
	sort: number;
	gmtCreate: string;
	gmtModified: string;
}

// 小节列表的提交信息
export interface lessonParamsInterface {
	chapterId: string; // 章节id
	courseId: string; // 课程id
	sort: 0; // 序号
	isFree: true; // 是否免费
	title: string; // 小节标题
	videoSourceId: string;
}
// 章节列表
export interface chapterListInterface {
	id: string;
	title: string;
	children: lessonListInterface[];
}

// 小节列表
export interface lessonListInterface {
	id: string;
	title: string;
	videoSourceId: string;
}
// 根据课程id查询课程大纲列表的结果类型
export interface chapterListResInterface {
	allChapterVideo: chapterListInterface[];
}

// 课程列表
export interface courseParamsInterface {
	pageNum: number;
	pageSize: number;
}
// 课程列表的结果类型
export interface courseItemsInterface {
	id: string;
	teacherId: string;
	subjectId: string;
	subjectParentId: string;
	title: string;
	price: number;
	lessonNum: number;
	cover: string;
	buyCount: number;
	viewCount: number;
	version: number;
	status: string;
	isDeleted: null;
	gmtCreate: string;
	gmtModified: string;
}
